home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Hyper / Si-Sr / Software Database™.cpt / Software Database™ / Software Database™ / background_2778.txt < prev    next >
Encoding:
Text File  |  1988-07-10  |  24.8 KB  |  1,082 lines

  1. -- background: 2778 from stack: in
  2. -- bmap block id: 10234
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on fix
  8.   set lockscreen to true
  9.   repeat with x=2 to number of cards
  10.     go to card x
  11.     get the script of bkgnd button "card script"
  12.     set the script of this card to it
  13.   end repeat
  14. end fix
  15.  
  16.  
  17.  
  18. -- part 1 (field)
  19. -- low flags: 00
  20. -- high flags: 0004
  21. -- rect: left=114 top=0 right=20 bottom=412
  22. -- title width / last selected line: 0
  23. -- icon id / first selected line: 0 / 0
  24. -- text alignment: 0
  25. -- font id: 2
  26. -- text size: 12
  27. -- style flags: 256
  28. -- line height: 16
  29. -- part name: program name
  30.  
  31.  
  32. -- part 2 (field)
  33. -- low flags: 00
  34. -- high flags: 0007
  35. -- rect: left=79 top=47 right=80 bottom=501
  36. -- title width / last selected line: 0
  37. -- icon id / first selected line: 0 / 0
  38. -- text alignment: 0
  39. -- font id: 2
  40. -- text size: 12
  41. -- style flags: 256
  42. -- line height: 16
  43. -- part name: keywords
  44.  
  45.  
  46. -- part 3 (field)
  47. -- low flags: 00
  48. -- high flags: 0004
  49. -- rect: left=48 top=82 right=102 bottom=322
  50. -- title width / last selected line: 0
  51. -- icon id / first selected line: 0 / 0
  52. -- text alignment: 0
  53. -- font id: 2
  54. -- text size: 12
  55. -- style flags: 256
  56. -- line height: 16
  57. -- part name: type
  58.  
  59.  
  60. -- part 4 (field)
  61. -- low flags: 00
  62. -- high flags: 0004
  63. -- rect: left=66 top=103 right=123 bottom=200
  64. -- title width / last selected line: 0
  65. -- icon id / first selected line: 0 / 0
  66. -- text alignment: 1
  67. -- font id: 2
  68. -- text size: 12
  69. -- style flags: 256
  70. -- line height: 16
  71. -- part name: version
  72.  
  73.  
  74. -- part 6 (field)
  75. -- low flags: 00
  76. -- high flags: 0004
  77. -- rect: left=56 top=149 right=171 bottom=364
  78. -- title width / last selected line: 0
  79. -- icon id / first selected line: 0 / 0
  80. -- text alignment: 0
  81. -- font id: 2
  82. -- text size: 12
  83. -- style flags: 256
  84. -- line height: 16
  85. -- part name: source
  86.  
  87.  
  88. -- part 7 (field)
  89. -- low flags: 00
  90. -- high flags: 0004
  91. -- rect: left=35 top=174 right=196 bottom=146
  92. -- title width / last selected line: 0
  93. -- icon id / first selected line: 0 / 0
  94. -- text alignment: 1
  95. -- font id: 2
  96. -- text size: 12
  97. -- style flags: 256
  98. -- line height: 16
  99. -- part name: size
  100.  
  101.  
  102. -- part 9 (field)
  103. -- low flags: 00
  104. -- high flags: 0004
  105. -- rect: left=44 top=197 right=218 bottom=181
  106. -- title width / last selected line: 0
  107. -- icon id / first selected line: 0 / 0
  108. -- text alignment: 0
  109. -- font id: 2
  110. -- text size: 12
  111. -- style flags: 256
  112. -- line height: 16
  113. -- part name: price
  114.  
  115.  
  116. -- part 11 (field)
  117. -- low flags: 00
  118. -- high flags: 0004
  119. -- rect: left=96 top=219 right=239 bottom=182
  120. -- title width / last selected line: 0
  121. -- icon id / first selected line: 0 / 0
  122. -- text alignment: 0
  123. -- font id: 2
  124. -- text size: 12
  125. -- style flags: 256
  126. -- line height: 16
  127. -- part name: paid?
  128.  
  129.  
  130. -- part 20 (field)
  131. -- low flags: 00
  132. -- high flags: 0004
  133. -- rect: left=441 top=81 right=100 bottom=510
  134. -- title width / last selected line: 0
  135. -- icon id / first selected line: 0 / 0
  136. -- text alignment: 0
  137. -- font id: 2
  138. -- text size: 12
  139. -- style flags: 256
  140. -- line height: 16
  141. -- part name: memory
  142.  
  143.  
  144. -- part 12 (button)
  145. -- low flags: 00
  146. -- high flags: 0000
  147. -- rect: left=486 top=318 right=340 bottom=512
  148. -- title width / last selected line: 0
  149. -- icon id / first selected line: 27009 / 27009
  150. -- text alignment: 1
  151. -- font id: 0
  152. -- text size: 12
  153. -- style flags: 0
  154. -- line height: 16
  155. -- part name: New Button
  156. ----- HyperTalk script -----
  157. on mouseUp
  158.   go to next card
  159. end mouseUp
  160.  
  161.  
  162.  
  163. -- part 13 (button)
  164. -- low flags: 00
  165. -- high flags: 0000
  166. -- rect: left=455 top=319 right=342 bottom=484
  167. -- title width / last selected line: 0
  168. -- icon id / first selected line: 9301 / 9301
  169. -- text alignment: 1
  170. -- font id: 0
  171. -- text size: 12
  172. -- style flags: 0
  173. -- line height: 16
  174. -- part name: New Button
  175. ----- HyperTalk script -----
  176. on mouseUp
  177.   go to previous card
  178. end mouseUp
  179.  
  180.  
  181.  
  182. -- part 14 (button)
  183. -- low flags: 00
  184. -- high flags: 8003
  185. -- rect: left=26 top=255 right=299 bottom=139
  186. -- title width / last selected line: 0
  187. -- icon id / first selected line: 1001 / 1001
  188. -- text alignment: 1
  189. -- font id: 0
  190. -- text size: 12
  191. -- style flags: 0
  192. -- line height: 16
  193. -- part name: Add a New Card
  194. ----- HyperTalk script -----
  195. on mouseUp
  196.   global t99,t98
  197.   put bkgnd field "add file explan" into t98
  198.   put bkgnd field "mousedown message" into t99
  199.   put bkgnd field "resource help" into t97
  200.   domenu "new card"
  201.   --domenu "paste card"
  202.   put t98 into bkgnd field "add file explan"
  203.   put t99 into bkgnd field "mousedown message"
  204.   put t97 into bkgnd field "resource help"
  205.   get the script of bkgnd button "card script"
  206.   set the script of this card to it
  207.   send opencard to this card
  208. end mouseUp
  209.  
  210.  
  211.  
  212. -- part 16 (button)
  213. -- low flags: 00
  214. -- high flags: 8003
  215. -- rect: left=424 top=261 right=308 bottom=512
  216. -- title width / last selected line: 0
  217. -- icon id / first selected line: 2 / 2
  218. -- text alignment: 1
  219. -- font id: 0
  220. -- text size: 12
  221. -- style flags: 0
  222. -- line height: 16
  223. -- part name: DELETE THIS CARD
  224. ----- HyperTalk script -----
  225. on mouseUp
  226.   answer "Do You Really Want To Delete This Card?" with "yes" or "Cancel"
  227.   if it is "yes" then
  228.     set lockscreen to true
  229.     domenu "delete card"
  230.     push card
  231.     go to card 1
  232.     put line 1 of bkgnd field "nump" into nprogs
  233.     put nprogs - 1 into LINE 1 of bkgnd field "nump"
  234.     get loc of card button "rebuild file list"
  235.     click at it
  236.     pop card
  237.     set lockscreen to false
  238.   end if
  239. end mouseUp
  240.  
  241.  
  242.  
  243. -- part 17 (button)
  244. -- low flags: 00
  245. -- high flags: 8003
  246. -- rect: left=27 top=298 right=342 bottom=141
  247. -- title width / last selected line: 0
  248. -- icon id / first selected line: 1009 / 1009
  249. -- text alignment: 1
  250. -- font id: 0
  251. -- text size: 12
  252. -- style flags: 0
  253. -- line height: 16
  254. -- part name: Search for Files
  255. ----- HyperTalk script -----
  256. function buttonName fullName
  257. put the length of fullName into lastChar
  258. repeat with i = lastChar down to 1
  259.   if char i of fullName = ":" then exit repeat
  260. end repeat
  261. return char (i + 1) to lastChar of fullName
  262. end buttonName
  263. function address fullName
  264. put the length of fullName into lastChar
  265. repeat with i = lastChar down to 1
  266.   if char i of fullName = ":" then exit repeat
  267. end repeat
  268. return char 1 to i of fullName
  269. end address
  270.  
  271.  
  272. on mousedown
  273.   global resourcefindflag
  274.   global creatorcode
  275.   global res
  276.   global appname
  277.   global menuother
  278.   --get the clickloc
  279.   --put item 1 of it into h
  280.   --put item 2 of it into v
  281.   put 0 into resourceflag
  282.   --get PopUpMenu("Applications;Hypercard Stacks;DA;All;Other;Resource", 9, v, h)
  283.   put "APPL" into sstring
  284.   Get HPopupMenu(menuother,0,The MouseV-50,The MouseH)
  285.   Put Item 1 of it into TheLine
  286.   put Item 2 of it into TheItem
  287.   put empty into it
  288.   put theline into it
  289.  
  290.   if it is 0 then
  291.     show bkgnd field "mousedown message"
  292.     exit mousedown
  293.   end if
  294.  
  295.   if it = 1 then
  296.     put "APPL" into sstring
  297.   end if
  298.   if it = 2 then
  299.     put "STAK" into sstring
  300.   end if
  301.   if it = 3 then
  302.     put "DFIL" into sstring
  303.   end if
  304.  
  305.   if it = 4 then
  306.     put "" into sstring
  307.   end if
  308.   if it is 5 then
  309.     if theitem = 11 then
  310.       repeat with x=1 to 1000
  311.         ask "Enter the 4 letter creator code(Case is important)"
  312.         if it is empty then
  313.           exit mousedown
  314.         end if
  315.         put 0 into t1
  316.         repeat with x=1 to 5
  317.           if char x of it is not empty then
  318.             add 1 to t1
  319.           end if
  320.         end repeat
  321.         if t1 = 4  then
  322.           exit repeat
  323.         end if
  324.         answer "Sorry you need exactly 4 letters"
  325.       end repeat
  326.       put it into sstring
  327.     else
  328.       put item theitem-1 of creatorcodes into sstring
  329.     end if
  330.  
  331.   end  if
  332.   if it is 6 then
  333.     put "" into sstring
  334.     put 1 into resourceflag
  335.     if theitem is 9 then
  336.       repeat with x=1 to 1000
  337.         ask "Enter the 4 letter resource name"
  338.         if it is empty then
  339.           exit mousedown
  340.         end if
  341.         put 0 into t1
  342.         repeat with x=1 to 5
  343.           if char x of it is not empty then
  344.             add 1 to t1
  345.           end if
  346.         end repeat
  347.         if t1 = 4  then
  348.           exit repeat
  349.         end if
  350.         answer "Sorry you need exactly 4 letters"
  351.       end repeat
  352.       put it into resourcename
  353.     else
  354.       put item theitem of line theline of menu into resourcename
  355.     end if
  356.  
  357.   end  if
  358.  
  359.   get fileName(sstring)
  360.   put it into appFile
  361.   if it is not empty and offset ("¬¢",it) is 0 then
  362.     put appFile into fname
  363.     put buttonName(appFile) into appName
  364.     --put "after button name " & appname into line 1 of card field "gork"
  365.     set lockscreen to true
  366.     --put the number of this card into gork
  367.     find appname in bkgnd field "program name"
  368.     if the result is empty then
  369.       answer "A file with this name already entered" with "continue" or "Cancel"
  370.       if it is "cancel" then
  371.         go to card gork
  372.         set lockscreen to false
  373.         exit mousedown
  374.  
  375.       end if
  376.     else
  377.       set lockscreen to false
  378.     end if
  379.     get filemoddate(fname,test)
  380.     convert it to short date
  381.     put it into bkgnd field "date"
  382.     set cursor to 4
  383.     set the name of this card to appName
  384.     --put "after card name" && appname into line 2 of card field "gork"
  385.     set lockscreen to true
  386.     push card
  387.     go to card 1
  388.     put line 1 of bkgnd field "nump" into nprogs
  389.     put nprogs + 1 into nprogs
  390.     put nprogs into line 1 of bkgnd field "nump"
  391.     put appName into line nprogs of card field 1
  392.     pop card
  393.     set lockscreen to false
  394.     put appName into bkgnd field "program name"
  395.     put address(appFile) into bkgnd field "location"
  396.     put bkgnd field "location" & bkgnd field "program name" into address
  397.     put xfileinfo(address) into t43
  398.     if first word of first item of t43 is not "error" then
  399.       put (item 1 of t43) into bkgnd field "size"
  400.       put item 2 of t43 && item 3 of t43  && item 4 of t43 into bkgnd field "date"
  401.       put item 8 of t43 into bkgnd field "file type"
  402.       put item 9 of t43 into bkgnd field "creator"
  403.     end if
  404.  
  405.     --This sets the ICON of the button with GetapplIcon XFCN
  406.     --put long name of this stack into thisStack
  407.     --put char 8 to (number of chars in thisStack - 1) of thisStack into thisStack
  408.     --put GetAppIcon(appfile,appfile,thisStack) into iconNo
  409.     put 32462 into iconNo
  410.     if offset("hypercard",appName) < 1 and sstring is "APPL" then
  411.       --This sets the ICON of the button with GetapplIcon XFCN
  412.       put long name of this stack into thisStack
  413.       put char 8 to (number of chars in thisStack - 1) of thisStack into thisStack
  414.       put GetAppIcon(appfile,appfile,thisStack) into iconNo
  415.     end if
  416.  
  417.     if offset("hypercard",appName) > 0 then
  418.       put 1001 into iconno
  419.     end if
  420.     if sstring is "STAK" or bkgnd field "file type" is "STAK" then
  421.       put 1000 into iconno
  422.     end if
  423.  
  424.     if iconNo = "0" then exit mousedown
  425.  
  426.     if the number of card buttons > 0 then
  427.       choose "button tool"
  428.       get loc of card button 1
  429.       click at it
  430.       domenu "cut button"
  431.     end if
  432.     doMenu "New Button"
  433.     hide button "New Button"
  434.     set showname of button "New Button" to false
  435.     set icon of button "New Button" to iconNo
  436.     UpdateResFork
  437.     set style of button "New Button" to transparent
  438.     set rect of button "New Button" to 77,1,116,41
  439.     put char 1 to 20 of appname into nbuttonname
  440.     set name of button "New Button" to nbuttonname
  441.     --put "after new button name" && appname into line 3 of card field "gork"
  442.     get the script of bkgnd button "launch"
  443.     set the script of  card button nbuttonname to it
  444.     show button nbuttonname
  445.     choose "browse tool"
  446.  
  447.     if resourcefindflag > 0 then
  448.  
  449.       global res
  450.       set the cursor to 4
  451.       put empty into res
  452.       put xreslong(address) into temp
  453.       put res & temp into temp
  454.       -- get the first resource type which will always be in the front
  455.       put offset(":",temp) into nex
  456.       put empty into bkgnd field "resources"
  457.  
  458.       -- if there are no resources notify the user
  459.       if nex < 1 then
  460.         put "Sorry no resources found in this file" into bkgnd field "resources"
  461.         exit mousedown
  462.  
  463.       end if
  464.       --put temp
  465.       put item 1 of temp into resname
  466.       put 1 into useline
  467.       put 0 into numnoname
  468.       repeat with x=2 to the number of items in temp
  469.         get item x of temp
  470.         put offset (":",it) into t1
  471.         -- if the next item doesn't contain a : it is of the same resource class
  472.         if t1 < 1 then
  473.           if it is empty or it is "," then
  474.             add 1 to numnoname
  475.           else
  476.  
  477.             put resname && it into line useline of bkgnd field "resources"
  478.             add 1 to useline
  479.           end if
  480.         else
  481.           if numnoname >0 then
  482.             put resname && numnoname && "unnamed" into line useline of bkgnd field "resources"
  483.             add 1 to useline
  484.           end if
  485.  
  486.           put item x of temp into resname
  487.           put 0 into numnoname
  488.         end if
  489.       end repeat
  490.     end if
  491.  
  492.  
  493.   end if
  494.   put the short time && the short date into bkgnd field "update date"
  495.  
  496. end mousedown
  497.  
  498.  
  499.  
  500.  
  501. -- part 19 (field)
  502. -- low flags: 01
  503. -- high flags: 0004
  504. -- rect: left=439 top=106 right=125 bottom=512
  505. -- title width / last selected line: 0
  506. -- icon id / first selected line: 0 / 0
  507. -- text alignment: 0
  508. -- font id: 2
  509. -- text size: 12
  510. -- style flags: 256
  511. -- line height: 16
  512. -- part name: color
  513. ----- HyperTalk script -----
  514. on mouseup
  515.   global color
  516.   if color = 2 then
  517.     put "???" into bkgnd field "color"
  518.     put 0 into color
  519.     exit mouseup
  520.   end if
  521.   if color = 1 then
  522.     put 2 into color
  523.     put "no" into bkgnd field "color"
  524.     exit mouseup
  525.   end if
  526.   if color = 0 then
  527.     put 1 into color
  528.     put "yes" into bkgnd field "color"
  529.     exit mouseup
  530.   end if
  531. end mouseup
  532.  
  533.  
  534.  
  535.  
  536. -- part 25 (field)
  537. -- low flags: 01
  538. -- high flags: 0004
  539. -- rect: left=429 top=137 right=153 bottom=497
  540. -- title width / last selected line: 0
  541. -- icon id / first selected line: 0 / 0
  542. -- text alignment: 0
  543. -- font id: 2
  544. -- text size: 10
  545. -- style flags: 256
  546. -- line height: 12
  547. -- part name: macII
  548. ----- HyperTalk script -----
  549. on mouseup
  550.   global macII
  551.   if macII = 2 then
  552.     put 0 into macII
  553.     put "???" into bkgnd field "macII"
  554.     exit mouseup
  555.   end if
  556.   if macII = 1 then
  557.     put 2 into macII
  558.     put "yes" into bkgnd field "macII"
  559.     exit mouseup
  560.   end if
  561.   if macII = 0 then
  562.     put 1 into macII
  563.     put "no" into bkgnd field "macII"
  564.   end if
  565. end mouseup
  566.  
  567.  
  568.  
  569.  
  570. -- part 26 (field)
  571. -- low flags: 01
  572. -- high flags: 0004
  573. -- rect: left=430 top=153 right=169 bottom=498
  574. -- title width / last selected line: 0
  575. -- icon id / first selected line: 0 / 0
  576. -- text alignment: 0
  577. -- font id: 2
  578. -- text size: 10
  579. -- style flags: 256
  580. -- line height: 12
  581. -- part name: macse
  582. ----- HyperTalk script -----
  583. on mouseup
  584.   global macse
  585.   if macse = 2 then
  586.     put 0 into macse
  587.     put "???" into bkgnd field "macse"
  588.     exit mouseup
  589.   end if
  590.   if macse = 1 then
  591.     put 2 into macse
  592.     put "yes" into bkgnd field "macse"
  593.     exit mouseup
  594.   end if
  595.   if macse = 0 then
  596.     put 1 into macse
  597.     put "no" into bkgnd field "macse"
  598.   end if
  599.  
  600. end mouseup
  601.  
  602.  
  603.  
  604.  
  605. -- part 27 (field)
  606. -- low flags: 01
  607. -- high flags: 0004
  608. -- rect: left=431 top=169 right=186 bottom=499
  609. -- title width / last selected line: 0
  610. -- icon id / first selected line: 0 / 0
  611. -- text alignment: 0
  612. -- font id: 2
  613. -- text size: 10
  614. -- style flags: 256
  615. -- line height: 12
  616. -- part name: mac+
  617. ----- HyperTalk script -----
  618. on mouseup
  619.   global macp
  620.   if macp = 2 then
  621.     put 0 into macp
  622.     put "???" into bkgnd field "mac+"
  623.     exit mouseup
  624.   end if
  625.   if macp = 1 then
  626.     put 2 into macp
  627.     put "yes" into bkgnd field "mac+"
  628.     exit mouseup
  629.   end if
  630.   if macp = 0 then
  631.     put 1 into macp
  632.     put "no" into bkgnd field "mac+"
  633.   end if
  634.  
  635. end mouseup
  636.  
  637.  
  638.  
  639.  
  640. -- part 28 (field)
  641. -- low flags: 01
  642. -- high flags: 0004
  643. -- rect: left=432 top=186 right=202 bottom=500
  644. -- title width / last selected line: 0
  645. -- icon id / first selected line: 0 / 0
  646. -- text alignment: 0
  647. -- font id: 2
  648. -- text size: 10
  649. -- style flags: 256
  650. -- line height: 12
  651. -- part name: mac
  652. ----- HyperTalk script -----
  653. on mouseup
  654.   global mac
  655.   if mac = 2 then
  656.     put 0 into mac
  657.     put "???" into bkgnd field "mac"
  658.     exit mouseup
  659.   end if
  660.   if mac = 1 then
  661.     put 2 into mac
  662.     put "yes" into bkgnd field "mac"
  663.     exit mouseup
  664.   end if
  665.   if mac = 0 then
  666.     put 1 into mac
  667.     put "no" into bkgnd field "mac"
  668.   end if
  669.  
  670. end mouseup
  671.  
  672.  
  673.  
  674.  
  675. -- part 10 (field)
  676. -- low flags: 00
  677. -- high flags: 0007
  678. -- rect: left=248 top=202 right=251 bottom=500
  679. -- title width / last selected line: 0
  680. -- icon id / first selected line: 0 / 0
  681. -- text alignment: 0
  682. -- font id: 2
  683. -- text size: 12
  684. -- style flags: 256
  685. -- line height: 16
  686. -- part name: company
  687.  
  688.  
  689. -- part 5 (field)
  690. -- low flags: 00
  691. -- high flags: 0004
  692. -- rect: left=103 top=125 right=146 bottom=363
  693. -- title width / last selected line: 0
  694. -- icon id / first selected line: 0 / 0
  695. -- text alignment: 0
  696. -- font id: 2
  697. -- text size: 12
  698. -- style flags: 256
  699. -- line height: 16
  700. -- part name: date
  701.  
  702.  
  703. -- part 15 (field)
  704. -- low flags: 00
  705. -- high flags: 0000
  706. -- rect: left=463 top=0 right=26 bottom=512
  707. -- title width / last selected line: 0
  708. -- icon id / first selected line: 0 / 0
  709. -- text alignment: 0
  710. -- font id: 2
  711. -- text size: 18
  712. -- style flags: 256
  713. -- line height: 24
  714. -- part name: index
  715.  
  716.  
  717. -- part 29 (field)
  718. -- low flags: 00
  719. -- high flags: 0007
  720. -- rect: left=114 top=17 right=48 bottom=462
  721. -- title width / last selected line: 0
  722. -- icon id / first selected line: 0 / 0
  723. -- text alignment: 0
  724. -- font id: 2
  725. -- text size: 12
  726. -- style flags: 256
  727. -- line height: 16
  728. -- part name: location
  729.  
  730.  
  731. -- part 30 (button)
  732. -- low flags: 00
  733. -- high flags: 8003
  734. -- rect: left=142 top=273 right=320 bottom=256
  735. -- title width / last selected line: 0
  736. -- icon id / first selected line: 20186 / 20186
  737. -- text alignment: 1
  738. -- font id: 0
  739. -- text size: 12
  740. -- style flags: 0
  741. -- line height: 16
  742. -- part name: Go to Sort and Find card
  743. ----- HyperTalk script -----
  744. on mouseUp
  745.   go to first card of this stack
  746. end mouseUp
  747.  
  748.  
  749.  
  750. -- part 31 (button)
  751. -- low flags: 00
  752. -- high flags: 8003
  753. -- rect: left=142 top=257 right=272 bottom=243
  754. -- title width / last selected line: 0
  755. -- icon id / first selected line: 0 / 0
  756. -- text alignment: 1
  757. -- font id: 0
  758. -- text size: 12
  759. -- style flags: 0
  760. -- line height: 16
  761. -- part name: Continue Find
  762. ----- HyperTalk script -----
  763. on mouseUp
  764.   global string
  765.   global catagory
  766.   set the lockscreen to true
  767.   go to next card
  768.   find chars string in bkgnd field catagory
  769.   set the lockscreen to false
  770. end mouseUp
  771.  
  772.  
  773.  
  774. -- part 32 (button)
  775. -- low flags: 00
  776. -- high flags: 0000
  777. -- rect: left=102 top=2 right=14 bottom=114
  778. -- title width / last selected line: 0
  779. -- icon id / first selected line: 0 / 0
  780. -- text alignment: 1
  781. -- font id: 0
  782. -- text size: 12
  783. -- style flags: 0
  784. -- line height: 16
  785. -- part name: launch
  786. ----- HyperTalk script -----
  787. on mouseUp
  788.   put bkgnd field "location" & bkgnd field "program name" into gork
  789.   open gork
  790. end mouseUp
  791.  
  792.  
  793.  
  794. -- part 33 (button)
  795. -- low flags: 00
  796. -- high flags: 0000
  797. -- rect: left=500 top=0 right=12 bottom=512
  798. -- title width / last selected line: 0
  799. -- icon id / first selected line: 0 / 0
  800. -- text alignment: 1
  801. -- font id: 0
  802. -- text size: 12
  803. -- style flags: 0
  804. -- line height: 16
  805. -- part name: card script
  806. ----- HyperTalk script -----
  807. on opencard
  808.   global macII
  809.   global macse
  810.   global macp
  811.   global mac
  812.   global color
  813.   put 0 into color
  814.   put 0 into macII
  815.   put 0 into macse
  816.   put 0 into macp
  817.   put 0 into mac
  818.   get the number of this card
  819.   put it - 1  into bkgnd field "index"
  820.   --if the freesize of this stack > 10000 then domenu "compact stack"
  821. end opencard
  822.  
  823.  
  824.  
  825. -- part 44 (field)
  826. -- low flags: 00
  827. -- high flags: 0004
  828. -- rect: left=325 top=104 right=124 bottom=376
  829. -- title width / last selected line: 0
  830. -- icon id / first selected line: 0 / 0
  831. -- text alignment: 0
  832. -- font id: 2
  833. -- text size: 12
  834. -- style flags: 256
  835. -- line height: 16
  836. -- part name: creator
  837.  
  838.  
  839. -- part 43 (field)
  840. -- low flags: 00
  841. -- high flags: 0004
  842. -- rect: left=324 top=82 right=102 bottom=375
  843. -- title width / last selected line: 0
  844. -- icon id / first selected line: 0 / 0
  845. -- text alignment: 0
  846. -- font id: 2
  847. -- text size: 12
  848. -- style flags: 256
  849. -- line height: 16
  850. -- part name: file type
  851.  
  852.  
  853. -- part 34 (field)
  854. -- low flags: 81
  855. -- high flags: 0007
  856. -- rect: left=249 top=1 right=296 bottom=452
  857. -- title width / last selected line: 0
  858. -- icon id / first selected line: 0 / 0
  859. -- text alignment: 0
  860. -- font id: 2
  861. -- text size: 12
  862. -- style flags: 256
  863. -- line height: 16
  864. -- part name: resources
  865. ----- HyperTalk script -----
  866. on mousedown
  867.   global showresourceflag
  868.   put 0 into showresourceflag
  869.   hide bkgnd field "resources"
  870. end mousedown
  871.  
  872.  
  873.  
  874. -- part 35 (button)
  875. -- low flags: 00
  876. -- high flags: 8003
  877. -- rect: left=269 top=299 right=342 bottom=382
  878. -- title width / last selected line: 0
  879. -- icon id / first selected line: 1009 / 1009
  880. -- text alignment: 1
  881. -- font id: 0
  882. -- text size: 12
  883. -- style flags: 0
  884. -- line height: 16
  885. -- part name: Show Resources
  886. ----- HyperTalk script -----
  887. on mouseUp
  888.   global showresourceflag
  889.   if showresourceflag > 0 then
  890.     hide bkgnd field "resources"
  891.     put 0 into showresourceflag
  892.   else
  893.     put 1 into showresourceflag
  894.     show bkgnd field "resources"
  895.     set locktext of bkgnd field "resources" to true
  896.   end if
  897. end mouseUp
  898.  
  899.  
  900.  
  901. -- part 36 (button)
  902. -- low flags: 00
  903. -- high flags: 8003
  904. -- rect: left=144 top=320 right=342 bottom=268
  905. -- title width / last selected line: 0
  906. -- icon id / first selected line: 0 / 0
  907. -- text alignment: 1
  908. -- font id: 0
  909. -- text size: 12
  910. -- style flags: 0
  911. -- line height: 16
  912. -- part name: Update Resources
  913. ----- HyperTalk script -----
  914. on mouseUp
  915.   global res
  916.   set the cursor to 4
  917.   put empty into res
  918.   put bkgnd field "location" & bkgnd field "program name" into address
  919.   if offset("hypercard",bkgnd field "program name") < 1 then
  920.     put xreslong(address) into temp
  921.     put res & temp into temp
  922.     -- get the first resource type which will always be in the front
  923.     put offset(":",temp) into nex
  924.     put empty into bkgnd field "resources"
  925.  
  926.     -- if there are no resources notify the user
  927.     if nex < 1 then
  928.       if offset("error",temp) > 0 then
  929.         put temp into bkgnd field "resources"
  930.         exit mouseup
  931.       else
  932.         put "Sorry no resources found in this file" into bkgnd field "resources"
  933.         exit mouseup
  934.       end if
  935.     end if
  936.     --put temp
  937.     put item 1 of temp into resname
  938.     put 1 into useline
  939.     put 0 into numnoname
  940.     repeat with x=2 to the number of items in temp
  941.       get item x of temp
  942.       put offset (":",it) into t1
  943.       -- if the next item doesn't contain a : it is of the same resource class
  944.       if t1 < 1 then
  945.         if it is empty or it is "," then
  946.           add 1 to numnoname
  947.         else
  948.           put resname && it into line useline of bkgnd field "resources"
  949.           add 1 to useline
  950.         end if
  951.       else
  952.         if numnoname >0 then
  953.           put resname && numnoname && "unnamed" into line useline of bkgnd field "resources"
  954.           add 1 to useline
  955.         end if
  956.         put item x of temp into resname
  957.         put 0 into numnoname
  958.       end if
  959.     end repeat
  960.     -- here we take care of cases which end with no named resources
  961.     if numnoname >0 then
  962.       put resname && numnoname && "unnamed" into line useline of bkgnd field "resources"
  963.       add 1 to useline
  964.     end if
  965.   else
  966.     put "Sorry can't look at Hypercard resources" into bkgnd field "resources"
  967.   end if
  968.  
  969.  
  970.  
  971. end mouseUp
  972.  
  973.  
  974.  
  975. -- part 37 (field)
  976. -- low flags: 81
  977. -- high flags: 0004
  978. -- rect: left=102 top=124 right=208 bottom=365
  979. -- title width / last selected line: 0
  980. -- icon id / first selected line: 0 / 0
  981. -- text alignment: 1
  982. -- font id: 2
  983. -- text size: 12
  984. -- style flags: 256
  985. -- line height: 16
  986. -- part name: mousedown message
  987. ----- HyperTalk script -----
  988. on mouseup
  989.   hide bkgnd field "mousedown message"
  990. end mouseup
  991.  
  992.  
  993.  
  994. -- part 38 (button)
  995. -- low flags: 00
  996. -- high flags: 0000
  997. -- rect: left=4 top=288 right=309 bottom=27
  998. -- title width / last selected line: 0
  999. -- icon id / first selected line: 26635 / 26635
  1000. -- text alignment: 1
  1001. -- font id: 0
  1002. -- text size: 12
  1003. -- style flags: 0
  1004. -- line height: 16
  1005. -- part name: New Button
  1006. ----- HyperTalk script -----
  1007. on mouseUp
  1008.   show bkgnd field "add file explan"
  1009. end mouseUp
  1010.  
  1011.  
  1012.  
  1013. -- part 40 (field)
  1014. -- low flags: 81
  1015. -- high flags: 0007
  1016. -- rect: left=115 top=1 right=227 bottom=512
  1017. -- title width / last selected line: 0
  1018. -- icon id / first selected line: 0 / 0
  1019. -- text alignment: 0
  1020. -- font id: 2
  1021. -- text size: 12
  1022. -- style flags: 256
  1023. -- line height: 16
  1024. -- part name: add file explan
  1025. ----- HyperTalk script -----
  1026. on mouseup
  1027.   hide bkgnd field "add file explan"
  1028. end mouseup
  1029.  
  1030.  
  1031.  
  1032. -- part 41 (button)
  1033. -- low flags: 00
  1034. -- high flags: 0000
  1035. -- rect: left=382 top=313 right=331 bottom=403
  1036. -- title width / last selected line: 0
  1037. -- icon id / first selected line: 26635 / 26635
  1038. -- text alignment: 1
  1039. -- font id: 0
  1040. -- text size: 12
  1041. -- style flags: 0
  1042. -- line height: 16
  1043. -- part name: New Button
  1044. ----- HyperTalk script -----
  1045. on mouseUp
  1046.   show background field "resource help"
  1047. end mouseUp
  1048.  
  1049.  
  1050.  
  1051. -- part 42 (field)
  1052. -- low flags: 81
  1053. -- high flags: 0007
  1054. -- rect: left=141 top=1 right=241 bottom=512
  1055. -- title width / last selected line: 0
  1056. -- icon id / first selected line: 0 / 0
  1057. -- text alignment: 0
  1058. -- font id: 2
  1059. -- text size: 12
  1060. -- style flags: 256
  1061. -- line height: 16
  1062. -- part name: resource help
  1063. ----- HyperTalk script -----
  1064. on mouseup
  1065.   hide bkgnd field "resource help"
  1066. end mouseup
  1067.  
  1068.  
  1069.  
  1070. -- part 45 (field)
  1071. -- low flags: 00
  1072. -- high flags: 0004
  1073. -- rect: left=123 top=238 right=255 bottom=249
  1074. -- title width / last selected line: 0
  1075. -- icon id / first selected line: 0 / 0
  1076. -- text alignment: 1
  1077. -- font id: 2
  1078. -- text size: 10
  1079. -- style flags: 256
  1080. -- line height: 13
  1081. -- part name: update date
  1082.